#ifndef __BTREE_ALGO_H__ 
#define __BTREE_ALGO_H__

#include <stdint.h>

struct wffs_raw_key
    {
    uint64_t id;
    uint16_t type;
    uint64_t offset;
    } __attribute__ ((__packed__));

struct wffs_raw_block_header
    {
    uint8_t  level;
    uint16_t nr_items;
    } __attribute__ ((__packed__));

struct wffs_raw_item_header
    {
    struct wffs_raw_key key;
    uint32_t offset;
    uint32_t size;
    } __attribute__ ((__packed__));

#endif /* __BTREE_ALGO_H__ */ 
